<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<ul>
    <li>01</li>
    <li>02</li>
    <li>03</li>
    <li>04</li>
    <li>05</li>
</ul>

<body>

</body>
<script>

    const oLis = document.querySelectorAll('li');
    console.log(oLis);

    // forof遍历 oLis
    for (let item of oLis) {
        console.log(item, item.innerHTML);
    }

</script>

</html>